package com.example.demo.test123;

import com.example.demo.mapper.InformationesZMapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
public class Informationes {
    @Resource
    private InformationesZMapper informationesZMapper;

    @RequestMapping("/tijiao")
    public String Formin() {
        return "GraduateInformation";
    }

    @RequestMapping("/methods2")
    public String demo1(String name,int age,String sex,String email,String phone,String city,String self) {
        System.out.println("进来了");
        boolean addinformation = informationesZMapper.addinformation(name,age,sex,email,phone,city,self);
        System.out.println(addinformation);
        return "Homepage";

    }
}
